/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ifips5.nal.epizza.web.model;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author Moi
 */
@XmlRootElement(name = "typeMenu")
public class TypeMenu implements Serializable
{
    @XmlAttribute(name = "id")
    private int idTypeMenu;
    
    @XmlAttribute(name = "name")
    private String nom;
    
    @XmlAttribute(name = "description")
    private String description;
    
    @XmlAttribute(name = "price")
    private double prix;
    
    @XmlAttribute(name = "nbPizzas")
    private int nbPizzas;
    
    @XmlAttribute(name = "nbBoissons")
    private int nbBoissons;

    public TypeMenu()
    {
    }
    
    public TypeMenu(int idTypeMenu, String nom, String description, double prix, int nbPizzas, int nbBoissons)
    {
        this.idTypeMenu = idTypeMenu;
        this.description = description;
        this.nom = nom;
        this.prix = prix;
        this.nbBoissons = nbBoissons;
        this.nbPizzas = nbPizzas;
    }
    
    public String getDescription()
    {
        return description;
    }

    @XmlTransient
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getNom()
    {
        return nom;
    }

    @XmlTransient
    public void setNom(String nom)
    {
        this.nom = nom;
    }

    public double getPrix()
    {
        return prix;
    }

    @XmlTransient
    public void setPrix(double prix)
    {
        this.prix = prix;
    }

    public int getNbBoissons()
    {
        return nbBoissons;
    }

    @XmlTransient
    public void setNbBoissons(int nbBoissons)
    {
        this.nbBoissons = nbBoissons;
    }

    public int getNbPizzas()
    {
        return nbPizzas;
    }

    @XmlTransient
    public void setNbPizzas(int nbPizzas)
    {
        this.nbPizzas = nbPizzas;
    }

    public int getIdTypeMenu()
    {
        return idTypeMenu;
    }

    @XmlTransient
    public void setIdTypeMenu(int idTypeMenu)
    {
        this.idTypeMenu = idTypeMenu;
    }


}

